﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<IEnumerable<KabiManagementWeb.Models.Statistic>>" %>

    <table>
        <tr>
            <th></th>
            <th>
                TotalAmount
            </th>
            <th>
                TotalSpend
            </th>
            <th>
                TotalTip
            </th>
            <th>
                TotalImport
            </th>
            <th>
                TotalExport
            </th>
            <th>
                TotalFoodAmount
            </th>
            <th>
                TotalProductAmount
            </th>
        </tr>

    <% foreach (var item in Model) { %>
    
        <tr>
            <td>
                <%= Html.ActionLink("Edit", "Edit", new { /* id=item.PrimaryKey */ }) %> |
                <%= Html.ActionLink("Details", "Details", new { /* id=item.PrimaryKey */ })%> |
                <%= Html.ActionLink("Delete", "Delete", new { /* id=item.PrimaryKey */ })%>
            </td>
            <td>
                <%= Html.Encode(String.Format("{0:F}", item.TotalAmount)) %>
            </td>
            <td>
                <%= Html.Encode(String.Format("{0:F}", item.TotalSpend)) %>
            </td>
            <td>
                <%= Html.Encode(String.Format("{0:F}", item.TotalTip)) %>
            </td>
            <td>
                <%= Html.Encode(String.Format("{0:F}", item.TotalImport)) %>
            </td>
            <td>
                <%= Html.Encode(String.Format("{0:F}", item.TotalExport)) %>
            </td>
            <td>
                <%= Html.Encode(String.Format("{0:F}", item.TotalFoodAmount)) %>
            </td>
            <td>
                <%= Html.Encode(String.Format("{0:F}", item.TotalProductAmount)) %>
            </td>
        </tr>
    
    <% } %>

    </table>

    <p>
        <%= Html.ActionLink("Create New", "Create") %>
    </p>


